﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using System.Threading;
using System.Security.Principal;
using NSsh.Common.Utility;
using NSsh.Server.Services;
using NSsh.Common.Packets;
using log4net;
using System.IO;
using NSsh.Server.ChannelLayer.Console;

namespace NSsh.Server.ChannelLayer
{
    public class PtyChannelConsumer : BaseConsoleChannelConsumer
    {
        protected override IConsole CreateConsole()
        {
            IImpersonationProvider impersonationProvider = Dependency.Resolve<IImpersonationProvider>();
            //impersonationProvider.Impersonate(AuthenticatedIdentity);

            // TODO: check the user's registry or similar for their selected shell

            //return new PowerShellConsole(impersonationProvider, AuthenticatedIdentity, Password);
            return new CommandConsole(impersonationProvider, AuthenticatedIdentity, Password);
        }
    }
}
